<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<title>{$content.title}</title>
<link href="../Public/favicon.ico" rel="icon" type="image/x-icon" />
<meta name="keywords" content="{$content.keyword|default=$content['title']}">
<meta name="description" content="{$content.info|default=$content['title']}">
<link rel="stylesheet" type="text/css" href="../Public/css/css1.css"/>
<link rel="stylesheet" href="__PUBLIC__/css/pagination.css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.pagination.js"></script>
<script type="text/javascript">
    function pageselectCallback(page_index, jq){
        var new_content = jQuery('.hiddenresult div.result:eq('+page_index+')').clone();
        $('.Searchresult').empty().append(new_content);
        return false;
    }
    function initPagination() {
        var num_entries = jQuery('.hiddenresult div.result').length;
        if(num_entries<=1){
        	$('.Searchresult').empty().append($('.hiddenresult div.result').html());
          return false;
        }
        $("#Pagination").pagination(num_entries, {
            callback: pageselectCallback,
            items_per_page:1
        });
     }
    $(document).ready(function(){      
        initPagination();
        $.get(
						"__APP__/Html/addClick/id/{$content.id}",
						function(data){
							if(data){
								var num = parseInt($("#content_num").html());
								num = num+1;
								$("#content_num").html(num);
							}
						}
					);
    });
    var PUBLIC = "__PULIC__";
    var TS = "__APP__";
</script>
</head>

<body>
<include file="Public:header" />
<div style="float:left; margin-top:5px; margin-bottom:-3px;">&nbsp;&nbsp;<strong>当前位置</strong>:&nbsp;&nbsp;&nbsp;&nbsp;<a href="__APP__/Index/index">网站首页</a>&nbsp;&nbsp;{$parts}</div>
<div id="main" style="margin-top:10px; margin-bottom:7px;">

<include file="Html:detailNews" />
    
	<div id="lb_right">
    	<div id="txtpic">
        	{$adarray.detail_top_banner.content}
        </div>   
	  	<div id="inner4">
      		<div id="title">
            	<div id="tit"><h1><strong>{$content.title}</strong></h1></div>
            	<br/>
              <div id="info">作者: {$content.author|default='未知'}	&nbsp;&nbsp;	来源: 	{$content.source|default='未知'} &nbsp;&nbsp;	日期: 	{$content.ctime|date='Y:m:d',###} &nbsp;&nbsp;	点击数: 	<span id="content_num">{$content.num}</span></div>
            </div>
            <div id="text">
            	<div id="textdt" class="Searchresult" >
              </div>
            </div>
      	</div>   
        <!--分页开始-->
        <div id="search" style="margin-top:10px;">
        	<div style="width:600px; margin:0 auto; text-align:center;height:30px;padding-top:5px;" id="Pagination">
          </div>
        </div>
        <!--分页结束-->
        <div class="hiddenresult" style="display:none;">
            		<div class="result">
            			{$content.content|pageContent}
            		</div>
        </div>
        <div>{:W('Comment',array( 'type'=>'News','appid'=>$content['id']))}</div>
    </div>   

</div>
<include file="Public:footer" />
</body>
</html>

